const Router = require("koa-router");
const router = new Router({ prefix: "/classify" });
const { create, findAll ,deleteClassify,updateClassify} = require("../controller/classify");

router.post("/", create);
router.get("/", findAll);
router.delete('/:id',deleteClassify)
router.put('/',updateClassify)
// router.post('/add',validator,create)
// router.post('/update/:id',update)
// // router.post('/remove/:id',remove)  // 硬删除
// router.post('/remove/on/:id',restore)
// router.post('/remove/off/:id',destore)
// router.get('/',findAll)
module.exports = router;
